
public class Song{
	
	private double tempo;
	private double duration;
	private double loudness;
	private double key;
	private double mode;
	private double year;
	private double hotness;
	private String title;
	private String songID;
	
	public Song(double tempo,double duration,double loudness,double key,double mode,double year,double hotness,String title,String songID) {
		this.tempo = tempo;
		this.duration = duration;
		this.loudness = loudness;
		this.key = key;
		this.mode = mode;
		this.year = year;
		this.hotness = hotness;
		this.title = title;
		this.songID = songID;
	}
	
	// 0 tempo, 1 hotness, 2 year, 3 mode, 4 key, 5 duration, 6 loudness
	public double getProp(int prop) throws Exception {
		switch (prop) {
		case 0:
			return tempo;
		case 1:
			return duration;
		case 2:
			return loudness;
		case 3:
			return key;
		case 4:
			return mode;
		case 5:
			return year;
		case 6:
			return hotness;
		}
		return 0;
	}
	
	public String getTitle() { return title; }
	
	public String getID() { return songID; }
}
